package net.peihuan.dao;

import net.peihuan.entity.Category;

import java.util.List;

public interface CategoryMapper {
    int deleteByPrimaryKey(Integer categoryid);

    int insert(Category record);

    int insertSelective(Category record);

    Category selectByPrimaryKey(Integer categoryid);

    //查询所有分类包括分类下的文章
    List<Category> selectAllCategorysWithArticles();

    //查询所有分类 不包括文章
    List<Category> selectAllCategorys();

    //查询总数
    int count();

    int updateByPrimaryKeySelective(Category record);

    int updateByPrimaryKey(Category record);
}